<template>
  <el-table :data="tableData" height="250" border style="width: 100%">
    <el-table-column prop="id" label="id" width="180"> </el-table-column>
    <el-table-column prop="account" label="账户名" width="180"> </el-table-column>
    <el-table-column prop="password" label="密码"> </el-table-column>
    <el-table-column prop="status" label="状态"> </el-table-column>
    <el-table-column prop="role_id" label="用户id"> </el-table-column>
  </el-table>
</template>

<script>
export default {
  data() {
    return {
      tableData: null,
    };
  },
  created() {
      alert(111)
    this.findAll();
  },
  methods: {
    findAll() {
      this.$axios
        .get("/rbacManager/User")
        .then((res) => {
          console.log(res);
              alert(res.data.status)
          if (res.data.status == 200) {
            alert(res.data.code)
            this.tableData = res.data.data
          }
        })
        .catch(() => {});
    },
  },
};
</script>